//
//  HBInvitRecordCell.m
//  HuoBao
//
//  Created by 于会海 on 15/12/7.
//  Copyright © 2015年 jinxin. All rights reserved.
//

#import "HBInvitRecordCell.h"

@interface HBInvitRecordCell ()
{
    UILabel* phonLabel;
//    UILabel* registDateLabel;
    UILabel* statusLabel;
//    UILabel* rewardLabel;
}

@end

@implementation HBInvitRecordCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self){
        self.backgroundColor = [UIColor clearColor];
        [self creatCellUI];
    }
    return self;
}
- (void)creatCellUI{
    phonLabel = [self createLableWithTextColor:[LCCommon getColor:@"dddddd"] font:nil text:self.phoneNumber textAlignment:NSTextAlignmentLeft frame:CGRectMake(30, 11, 100, 12) superView:self];
//    registDateLabel = [self createLableWithTextColor:[LCCommon getColor:@"888888"] font:nil text:self.registDate textAlignment:NSTextAlignmentLeft frame:CGRectMake(self.registDateX, 11, 150, 12) superView:self];
    statusLabel = [self createLableWithTextColor:[LCCommon getColor:@"dddddd"] font:nil text:self.status textAlignment:NSTextAlignmentRight frame:CGRectMake(SCREEN_WIDTH -30-40, 11, 40, 12) superView:self];
//    rewardLabel = [self createLableWithTextColor:[LCCommon getColor:@"888888"] font:nil text:self.rewardString textAlignment:NSTextAlignmentLeft frame:CGRectMake(self.rewardX, 11, 30, 12) superView:self];
    LLog(@"%@",self.phoneNumber);
    LLog(@"%lf",self.userNameX);
}


- (UILabel *)createLableWithTextColor:(UIColor *)color font:(UIFont *)font text:(NSString *)text textAlignment:(NSTextAlignment)textAlignment frame:(CGRect)frame superView:(UIView *)superView{
    UILabel *lable = [[UILabel alloc]initWithFrame:frame];
    lable.textColor = color;
    lable.font = [UIFont systemFontOfSize:13];
    lable.text = text;
    lable.textAlignment = textAlignment;
    [superView addSubview:lable];
    return lable;
}

- (void)reloadCell{
    [self creatCellUI];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
